#pragma once
#include <afxmt.h>

enum
{
	//CustomID
	//CustomMsg
	WM_U_STATUS_CHANGE=13500,
	WM_U_THREAD_EXIT,
};


struct PlugProp
{
	CString Caption;
	CString Value;
	int Type;
};

class PlugDetail
{
public:
	int LockStatus(int NewStatus=-1);

	CString Name;
	CString Ver;
	vector<PlugProp> Props;

	HWND hwndManager;
	int Status;
	int ID;
	BOOL bUseCustomConfig;
	LPVOID ProcAddr;
	CWinThread* ProcThread;
private:
	CCriticalSection StatusLocker;
};